package org.jeecg.modules.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.annotation.SqlParser;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.SysScopeDepart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 作用域授权
 * @Author: jeecg-boot
 * @Date:   2019-10-05
 * @Version: V1.0
 */
public interface SysScopeDepartMapper extends BaseMapper<SysScopeDepart> {

    @SqlParser(filter = true)
    List<SysScopeDepart> queryServerScopeDepart(@Param("scopeId") String scopeId,@Param("tenantId") String tenantId);
    @SqlParser(filter = true)
    void saveServerBatch(@Param("list") List<SysScopeDepart> list);
    @SqlParser(filter = true)
    void delServerBatch(@Param("tenantId") String tenantId,@Param("scopeId") String scopeId,@Param("departIds") List<String> delDepartIds);
    @SqlParser(filter = true)
    void serverSave(@Param("bean") SysScopeDepart sysScopeDepart);
}
